<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<load href="__PUBLIC__/Admin/Css/reset.css" />
<load href="__PUBLIC__/Admin/Css/zh-cn-system.css" />
<load href="__PUBLIC__/Admin/Css/table_form.css" />
<script type="text/javascript" src="/Public/Js/jquery.min.js"></script>
<script type="text/javascript" src="/Public/Js/jquery.form.js"></script>
<script src="/Public/Js/main.js"></script>
<script type="text/javascript" src="/Public/Js/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/Js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
$(function(){
	$('#myform').ajaxForm({
		beforeSubmit:  checkForm,
		success:       complete,
		dataType: 'json'
	});
	function checkForm(){
		if($('#name').val().length < 2){
			$('#name').focus();
			checkInfo('name','分组名称不得少于2个字符');
			return false;
		}else{
			return true;	
		}
	}
	
	var origin = $.artDialog.open.origin;

    function complete(data){
		msg(data.info,data.status);
		if(data.status)  setTimeout(function(){origin.location.reload();},1000);
		closeWin(1500);
    }
})
</script>
<style>
.checkbox {
	display: inline-block;
	padding-right: 10px;
}
</style>
</head>
<body>
<form method="post" action="../User/__URL__/saveUserGroup" name="myform" id="myform">
  <fieldset>
    <legend>基本信息</legend>
    <table class="table_form" width="100%" cellspacing="0">
      <tbody>
        <tr>
          <th>会员组名称：</th>
          <td><input name="name" id="name" class="input-text" type="text" size="20" value="{$info.name}">
            <span class="onShow"></span></td>
        </tr>
        <tr>
          <th>排序：</th>
          <td><input name="sort" id="sort" class="input-text" type="text" size="10" value="{$info.sort}">
            注：数值越小越靠前</td>
        </tr>
        <tr class="last">
          <th>备注：</th>
          <td colspan="3"><textarea name="remark" id="remark" class="input-textarea" cols="75" rows="4">{$info.remark}</textarea></td>
        </tr>
      </tbody>
    </table>
  </fieldset>
  <input type="hidden" name="id" value="{$info.id}" />
  <input type="hidden" name="user_id" value="{$Think.session.user_id}" />
  <input type="submit" value="提交" class="dialog"  id="dosubmit">
</form>
</body>
</html>
